layui.define(['laydate'], function(exports) {
    "use strict";

    var $=layui.jquery;

    /**
     * @constructor newTable 构造函数
     */
    var NewDate = function() {
    	this.target=layui.laydate;
        this.config = {
             elem: undefined
            ,show: true //直接显示
            ,type:'datetime'
            ,isInitValue: undefined
            ,format:'yyyy-MM-dd HH:mm:ss'
        };
    };

    NewDate.prototype.render = function(option) {
        var that = this;
        $.extend(true, that.config, option);

        that.target.render(that.config);

        return that;
    };

    var newDate=new NewDate();

    exports('newDate', newDate);
});